public class Test {

    public static int Max(int x,int y){
        return x>y?x:y;
    }
    public static float Max(float x,float y,float z){
        float a=x>y?x:y;
        if(z>a){
            return z;
        }
        return a;
    }
    public static void main(String[] args) {

        int a=Max(3,6);
        float b=Max(1.5f,4.6f,2.8f);
        System.out.println(a);
        System.out.println(b);

    }
}
